package com.aaa.hospital.ManagementEnd.service.Impl;

import com.aaa.hospital.Client.pojo.Visitingcard;
import com.aaa.hospital.ManagementEnd.mapper.UserDao;
import com.aaa.hospital.ManagementEnd.pojo.User;
import com.aaa.hospital.ManagementEnd.service.UserServices;
import com.aaa.hospital.ManagementEnd.util.PayDB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
//import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServicesImpl implements UserServices {

    @Autowired
    private UserDao mapper;
//


    @Override
    public List<User> queryAll() {
        return mapper.queryAll();
    }


    @Override
    public User user_ById(Integer uid) {
        return mapper.user_ById(uid);
    }

    @Override
    public Boolean user_insert(User user) {
        return mapper.user_insert(user);
    }

    @Override
    public Boolean user_del(Integer uid) {
        return mapper.user_del(uid);
    }

    @Override
    public Boolean user_update(User user) {
        return mapper.user_update(user);
    }

    @Override
    public User user_Byidcard(String idcard) {
        return mapper.user_Byidcard(idcard);
    }

    @Override
    public User user_phone(String phone) {
        return mapper.user_phone(phone);
    }

    @Override
    public boolean user_add(User user) {
        return mapper.user_add(user);
    }

    @Override
    public List<User> limitAll(Integer uid, String uname) {
        return mapper.limitAll(uid, uname);
    }

    @Override
    public Boolean insertCard(User user) {
        return mapper.insertCard(user);
    }

    @Override
    public Visitingcard queryByIdCard(String uname, String idcard) {

        return mapper.queryByIdCard(uname,idcard);
    }

    @Override
    public Integer queryUid(String uname, String idcard) {
        return mapper.queryUid(uname,idcard);
    }

    @Override
    public List<PayDB> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public List<PayDB> queryByIdCardVisid(Integer visid, String idcard) {
        return mapper.queryByIdCardVisid(visid,idcard);
    }

    @Override
    public User queryUserAll(Integer visid) {
        return mapper.queryUserAll(visid);
    }


}
